package com.qh.common.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @ClassName LocalDateTimeUtil
 * @Description TODO
 * @Author keph@guahao.com
 * @Date 2019/9/17 23:28
 * @Version 1.0
 */
public class LocalDateTimeUtil {
    public static LocalDateTime convert(String time){
        DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
       return LocalDateTime.parse(time,df);
    }
}
